import type { AppRouteModule } from '/@/route/types';
export const LAYOUT = () => import('/@/layout/index.vue');
import { meunRoute } from './meun'

export const RootRoute: AppRouteModule = {
    path: '/',
    name: 'dashboard',
    component: LAYOUT,
    redirect: '/dashboard',
    meta: {
        icon: 'bx:bx-home',
        title: 'dashboard',
    },
    children: [
        {
            path: 'dashboard',
            name: 'dashboard',
            component: () => import('/@/views/dashboard/index.vue'),
            meta: {
                icon: 'bx:bx-home',
                title: 'dashboard',
            },
        },
    ],
};

export const loginRoute: AppRouteModule = {
    path: '/login',
    name: 'login',
    component: () => import('/@/views/login/login.vue'),
    hidden: true,
    meta: {title: 'login'}
}

// 基础路由 不用权限
export const basicRoutes = [loginRoute, RootRoute, meunRoute];
